module.exports = (app) => {
    const { router, controller } = app;
    router.post('/v1/baiduApi/getAccessToken',controller.baiduapi.stsToken)
    //图像分类
    router.post("/v1/baiduApi/picCategory", controller.baiduapi.picCategory);
    //图像集的查找、删除、增加
    router.post("/v1/baiduApi/listDatasets", controller.baiduapi.list_datasets);
    router.post("/v1/baiduApi/createDataset", controller.baiduapi.create_dataset);
    router.post("/v1/baiduApi/deleteDataset", controller.baiduapi.delete_dataset);
    //查找、删除标签
    router.post("/v1/baiduApi/listCategories", controller.baiduapi.list_categories);
    router.post("/v1/baiduApi/deleteCategory", controller.baiduapi.delete_category);
    //添加数据
    router.post("/v1/baiduApi/addData", controller.baiduapi.add_data);
};
  